package com.camps.sdk.encrypt;

import com.camps.sdk.common.ExceptionCode;
import com.camps.sdk.entity.ChangeM1Card;
import com.camps.sdk.exception.BaseException;

import javax.activation.CommandMap;

/**
 * @Author ldaoliang
 * @Date create in 10:11 2021/9/1
 * @Description
 */
public class ClearSimCommand implements BuildCommand {
    @Override
    public String splicingParameters(String imei, Object params) {
        if(!(params instanceof String)){
            throw new BaseException(ExceptionCode.PARAMETER_ERROR);
        }

        String commandNumber = (String) params;
        StringBuilder sb = new StringBuilder("*WT,");
        sb = sb.append(imei).append(",CLEANSIM,").append(commandNumber).append("#");
        return sb.toString();
    }
}
